<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="vue.js"></script>
</head>
<body>

    <div id="root">
        <div @click="handleClick">
            {{msg}}
        </div>
        <item></item>
    </div>
    <script>
        Vue.component('item',{
          template:'<div>hello  vue</div>'
        })

        const vm = new Vue({
          el: '#root',
          data: {
            msg: 'ming'
          },
          methods: {
            handleClick: function () {
              alert(551)
            }
          }

        });

    </script>
</body>
</html>